package leetcode.singles;

import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;

/**
 * @Author: Liu Yue
 * @Descripition:
 * @Date; Create in 2020/3/1 14:38
 **/
public class ContainerSingletonTest {

    public static void main(String[] args) {
        Object instance = ContainerSingleton.getInstance("leetcode.singles.pojo");
        Object instance2 = ContainerSingleton.getInstance("leetcode.singles.pojo");
        System.out.println(instance==instance2);



    }
}
